package com.example.parkingsharing

import org.junit.Test
import java.sql.Timestamp

class TestDatabase {
    @Test
    fun testGet() {
        val dbManager = DatabaseManager()
        val dataList = dbManager.get()
        for (data in dataList) {
            println("data: $data")
        }
    }

    @Test
    fun testAdd() {
        val dbManager = DatabaseManager()
        val data = DatabaseData(
            "location2", true, "id2", Timestamp(System.currentTimeMillis())
        )
        dbManager.add(data)
    }

    @Test
    fun testDel() {
        val dbManager = DatabaseManager()
        dbManager.del("location2")
    }
}
